#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s;
	while(cin>>s && s!="c++ primer")
	{}
	return 0;
}